import request from '@/router/axios'
import { baseUrl } from '@/config/env'

const appAccountsPath = baseUrl + '/appAccounts';
const appVisitPaysPath = baseUrl + '/appVisitPays';
const deptPath = baseUrl + '/appZdDepts';
const appPaymentOrdersPath = baseUrl + '/appPaymentOrders';


export function getAccount (obj) {
  return request({
    url: `${appAccountsPath}/find`,
    method: 'post',
    data: obj
  })
}
export function getVisitPays (obj) {
  return request({
    url: `${appVisitPaysPath}/find`,
    method: 'post',
    data: obj
  })
}
export function getDept (obj) {
  return request({
    url: `${deptPath}/find`,
    method: 'post',
    data: obj
  })
}
export function saveOrder (obj) {
  return request({
    url: `${appPaymentOrdersPath}`,
    method: 'post',
    data: obj
  })
}
export function payOrder (obj) {
  return request({
    url: `${appPaymentOrdersPath}/pay`,
    method: 'post',
    data: obj
  })
}